package com.asen.commons.core.base.enums;

import com.asen.commons.core.base.StringEnum;
import io.swagger.annotations.ApiModel;

/**
 * Decimal类型枚举
 *
 * @author Gary
 * @version 1.0
 * @date 2019-10-11
 */
@ApiModel("Decimal类型")
public enum DecimalTypeEnum implements StringEnum {

    /**
     * Decimal类型枚举
     */
    AMOUNT("AMOUNT", "金额"),
    PRICE("PRICE", "单价"),
    QTY("QTY", "数量"),
    RATE("RATE", "比率"),
    EXCHANGE_RATE("EXCHANGE_RATE", "汇率"),
    TAX_RATE("TAX_RATE", "税率"),
    CUSTOM("CUSTOM", "自定义");

    private String value;

    private String desc;

    private DecimalTypeEnum(String value, String desc) {
        this.desc = desc;
        this.value = value;
    }

    @Override
    public String getDesc() {
        return desc;
    }

    @Override
    public String getValue() {
        return value;
    }

}
